package cc.zy.base.businesses.mapper;

import cc.zy.base.businesses.entity.Level;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 层次
 * Mapper
 *
 * @author Jiangjinlin
 * @date 2021-01-26 10:43:23
 */
public interface LevelMapper extends BaseMapper<Level> {

    List<Level> getLevelList();

    /**
     * 方法描述：根据院校id查询层次[id、名称]，正序
     *
     * @param collegeId 院校id【必传项】
     * @return java.util.List<cc.zy.base.businesses.entity.Level> 层次集合
     * @author LiPeng
     * @date 2021/3/9
     */
    List<Level> selectLevelForSelect(@Param("collegeId") Integer collegeId);

    /**
     * 方法描述：根据层次名称查询层次id
     *
     * @param levelName 层次名称【必传项】
     * @return java.lang.Integer 查询到的层次id
     * @author LiPeng
     * @date 2021/3/12
     */
    Integer findId(@Param("levelName") String levelName);
}